package com.entity;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 教师
 * 数据库通用操作实体类（普通增删改查）
 *
 * @author
 * @email
 * @date 2022-04-07 15:35:03
 */
@TableName("jiaoshi")
public class JiaoshiEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;


    public JiaoshiEntity() {

    }

    public JiaoshiEntity(T t) {
        BeanUtil.copyProperties(this, t, CopyOptions.create().setIgnoreNullValue(true));
    }

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 教师工号
     */

    private String jiaoshigonghao;

    /**
     * 教师姓名
     */

    private String jiaoshixingming;

    /**
     * 密码
     */

    private String mima;

    /**
     * 教师手机
     */

    private String jiaoshishouji;

    /**
     * 头像
     */

    private String touxiang;

    /**
     * 性别
     */

    private String xingbie;

    /**
     * 教龄
     */

    private Integer jiaoling;

    /**
     * 邮箱
     */

    private String youxiang;


    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 设置：教师工号
     */
    public void setJiaoshigonghao(String jiaoshigonghao) {
        this.jiaoshigonghao = jiaoshigonghao;
    }

    /**
     * 获取：教师工号
     */
    public String getJiaoshigonghao() {
        return jiaoshigonghao;
    }

    /**
     * 设置：教师姓名
     */
    public void setJiaoshixingming(String jiaoshixingming) {
        this.jiaoshixingming = jiaoshixingming;
    }

    /**
     * 获取：教师姓名
     */
    public String getJiaoshixingming() {
        return jiaoshixingming;
    }

    /**
     * 设置：密码
     */
    public void setMima(String mima) {
        this.mima = mima;
    }

    /**
     * 获取：密码
     */
    public String getMima() {
        return mima;
    }

    /**
     * 设置：教师手机
     */
    public void setJiaoshishouji(String jiaoshishouji) {
        this.jiaoshishouji = jiaoshishouji;
    }

    /**
     * 获取：教师手机
     */
    public String getJiaoshishouji() {
        return jiaoshishouji;
    }

    /**
     * 设置：头像
     */
    public void setTouxiang(String touxiang) {
        this.touxiang = touxiang;
    }

    /**
     * 获取：头像
     */
    public String getTouxiang() {
        return touxiang;
    }

    /**
     * 设置：性别
     */
    public void setXingbie(String xingbie) {
        this.xingbie = xingbie;
    }

    /**
     * 获取：性别
     */
    public String getXingbie() {
        return xingbie;
    }

    /**
     * 设置：教龄
     */
    public void setJiaoling(Integer jiaoling) {
        this.jiaoling = jiaoling;
    }

    /**
     * 获取：教龄
     */
    public Integer getJiaoling() {
        return jiaoling;
    }

    /**
     * 设置：邮箱
     */
    public void setYouxiang(String youxiang) {
        this.youxiang = youxiang;
    }

    /**
     * 获取：邮箱
     */
    public String getYouxiang() {
        return youxiang;
    }

}